package org.example.t05;

/**
 * 尝试通过Jconsole 看堆大小变化。失败
 */
public class HeapTest {
    public static void main(String[] args) throws InterruptedException {
        Thread.sleep(30000L);
        HeapTest heapTest = new HeapTest();
        heapTest.m();
        Thread.sleep(30000L);
    }

    public void m(){
        for (int i = 0; i < 1000_0000; i++) {
            new Object();
        }
    }
}
